.post-detail-container {
    width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.post-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
}

.post-author,
.post-time {
    font-size: 1.1em;
    color: #546d9e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-author i,
.post-time i {
    font-size: 1.1em;
    color: #666;
}

.post-stats {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.view-count,
.like-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1em;
    color: #666;
}

.like-count:hover {
    cursor: pointer;
}

.post-content {
    width: 100%;
    margin-top: 30px;
    line-height: 1.8;
    color: #2c3e50;
}

/* Markdown 内容样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.8em;
    margin-bottom: 1em;
    color: #2c3e50;
    font-weight: 600;
}

.post-content h1 {
    font-size: 2em;
}

.post-content h2 {
    font-size: 1.8em;
}

.post-content h3 {
    font-size: 1.5em;
}

.post-content h4 {
    font-size: 1.3em;
}

.post-content p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    border-left: 4px solid #546d9e;
    padding-left: 20px;
    margin: 1.5em 0;
    color: #666;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

/* Giscus 评论区样式 */
.giscus-wrapper {
    width: 100%;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.giscus {
    width: 100%;
}

/* 代码块样式 */
.code-block {
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #2d2d2d;
    color: #fff;
}

.code-language {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: #e6e6e6;
}

.copy-btn {
    background: none;
    border: none;
    color: #e6e6e6;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.code-content {
    background: #1e1e1e;
}

.code-content pre {
    margin: 0;
    padding: 16px;
    background: transparent;
    overflow-x: auto;
}

.code-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    padding: 0;
    background: transparent;
}

/* 行内代码 */
.post-content :not(pre)>code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e83e8c;
    font-size: 0.9em;
}

/* 表格样式 */
.table-wrapper {
    overflow-x: auto;
    margin: 2em 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    border: 1px solid #eee;
    text-align: left;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* 点赞动画 */
.like-btn i {
    transition: all 0.3s ease;
}

.like-btn i.liked {
    transform: scale(1.3);
    color: #ff4757;
}

.like-btn:hover i {
    transform: scale(1.1);
}

/* 点赞按钮鼠标样式 */
.like-btn {
    cursor: pointer;
}

.like-btn:hover {
    background-color: rgba(84, 109, 158, 0.1);
}

/* 点赞动画相关样式 */
.like-count {
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* 点赞特效容器 */
.like-particles {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 点赞心形动画 */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(.95);
    }

    45%,
    80% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* 点赞粒子动画 */
@keyframes particleAnimation {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--r));
    }
}

/* 点赞波纹动画 */
@keyframes rippleAnimation {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.like-count.liked {
    animation: likeAnimation 0.8s cubic-bezier(0.17, 0.89, 0.32, 1.49);
    color: #ff4757;
}

/* 点赞粒子样式 */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    animation: particleAnimation 0.6s ease-out forwards;
}

/* 点赞波纹样式 */
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 71, 87, 0.3);
    border-radius: 50%;
    animation: rippleAnimation 0.6s ease-out forwards;
}